Skip to content

Conversation

@x3c41a
Copy link
Contributor

@x3c41a x3c41a commented Nov 24, 2025

Fetching CID from IPFS fails for an unknown reason, output:

Trying to get cid:  CID(bafk2bzacecycbokdswtfpolfvwyre2lld5pxdbqvcxckq7ant2gujpbfzmsam)
Block not found directly, trying cat... context deadline exceeded
Trying to chunk cid:  CID(bafk2bzacecycbokdswtfpolfvwyre2lld5pxdbqvcxckq7ant2gujpbfzmsam)

even though both authorise and store transactions were inBlock and I waited for an extra 12 (+1) seconds for change to propagate (just in case). However, that CID is not present in IPFS.

I back-tested this logic with what we have in authorize_and_store_papi.js: I stored a file with that script, got CID and tried to fetch it from the new script -- everything works fine. However, when I try to fetch CID stored with Smoldot + PAPI -- it fails.

The only thing that I know right now is that something is wrong along this path: script(PAPI tx) -> Smoldot -> Bulletin -> IPFS.
If tx is inblock (and I can see that block with PJS UI) it means that there is an issue between Bulletin <--> IPFS? @bkontur

To reproduce:

@x3c41a x3c41a marked this pull request as draft November 24, 2025 12:04
Comment on lines +154 to +155
console.log('\n⏳ Waiting for IPFS to propagate (13 seconds)...');
await new Promise(resolve => setTimeout(resolve, 13000));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the previous script I did not do it but added here just in case

@x3c41a x3c41a closed this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants